package com.gitee.zhanyao.cloud.security.entity.system;

import com.gitee.zhanyao.cloud.security.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 权限
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "sys_authority")
public class SysAuthority extends BaseEntity implements Serializable {

    /**
     * 权限主键
     */
    @Id
    @GeneratedValue(generator = "uuidStrategy")
    @GenericGenerator(name = "uuidStrategy", strategy = "uuid")
    private String id;
    /**
     * 权限名
     */
    private String name;
    /**
     * 权限代码
     */
    private String code;
    /**
     * 系统编码
     */
    private String sysCode;

}
